<HTML>
<HEAD>
<meta charset="UTF-8">
<title>BaseListAdapter - commons/ui</title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">commons/ui</a>&nbsp;/&nbsp;<a href="../index.html">com.vmadalin.commons.ui.base</a>&nbsp;/&nbsp;<a href="./index.html">BaseListAdapter</a><br/>
<br/>
<h1>BaseListAdapter</h1>
<code><span class="keyword">abstract</span> <span class="keyword">class </span><span class="identifier">BaseListAdapter</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">&gt;</span>&nbsp;<span class="symbol">:</span>&nbsp;<span class="identifier">ListAdapter</span><span class="symbol">&lt;</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">ViewHolder</span><span class="symbol">&gt;</span></code>
<p>Base list adapter to standardize and simplify initialization for this component.</p>
<h3>Parameters</h3>
<p><a name="itemsSame"></a>
<code>itemsSame</code> - Function called to check whether two objects represent the same item.</p>
<p><a name="contentsSame"></a>
<code>contentsSame</code> - Function called to check whether two items have the same data.</p>
<p><strong>See Also</strong><br/>
<p><a href="#">ListAdapter</a></p>
</p>
<h3>Constructors</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="-init-.html">&lt;init&gt;</a></h4>
</td>
<td>
<p>Base list adapter to standardize and simplify initialization for this component.</p>
<code><span class="identifier">BaseListAdapter</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$<init>(kotlin.Function2((com.vmadalin.commons.ui.base.BaseListAdapter.T, , kotlin.Boolean)), kotlin.Function2((com.vmadalin.commons.ui.base.BaseListAdapter.T, , kotlin.Boolean)))/itemsSame">itemsSame</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">T</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$<init>(kotlin.Function2((com.vmadalin.commons.ui.base.BaseListAdapter.T, , kotlin.Boolean)), kotlin.Function2((com.vmadalin.commons.ui.base.BaseListAdapter.T, , kotlin.Boolean)))/contentsSame">contentsSame</span><span class="symbol">:</span>&nbsp;<span class="symbol">(</span><span class="identifier">T</span><span class="symbol">,</span>&nbsp;<span class="identifier">T</span><span class="symbol">)</span>&nbsp;<span class="symbol">-&gt;</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html"><span class="identifier">Boolean</span></a><span class="symbol">)</span></code></td>
</tr>
</tbody>
</table>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<h4><a href="on-create-view-holder.html">onCreateViewHolder</a></h4>
</td>
<td>
<p>Called when RecyclerView needs a new <a href="#">RecyclerView.ViewHolder</a> of the given type to
represent an item.</p>
<code><span class="keyword">abstract</span> <span class="keyword">fun </span><span class="identifier">onCreateViewHolder</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$onCreateViewHolder(android.view.ViewGroup, android.view.LayoutInflater, kotlin.Int)/parent">parent</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/view/ViewGroup.html"><span class="identifier">ViewGroup</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$onCreateViewHolder(android.view.ViewGroup, android.view.LayoutInflater, kotlin.Int)/inflater">inflater</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/view/LayoutInflater.html"><span class="identifier">LayoutInflater</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$onCreateViewHolder(android.view.ViewGroup, android.view.LayoutInflater, kotlin.Int)/viewType">viewType</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">ViewHolder</span></code><br/>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">onCreateViewHolder</span><span class="symbol">(</span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$onCreateViewHolder(android.view.ViewGroup, kotlin.Int)/parent">parent</span><span class="symbol">:</span>&nbsp;<a href="https://developer.android.com/reference/android/view/ViewGroup.html"><span class="identifier">ViewGroup</span></a><span class="symbol">, </span><span class="identifier" id="com.vmadalin.commons.ui.base.BaseListAdapter$onCreateViewHolder(android.view.ViewGroup, kotlin.Int)/viewType">viewType</span><span class="symbol">:</span>&nbsp;<a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">ViewHolder</span></code></td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
